package cn.source.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.AaUserDownMapper;
import cn.source.system.domain.AaUserDown;
import cn.source.system.service.IAaUserDownService;

/**
 * 下载记录Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2023-08-04
 */
@Service
public class AaUserDownServiceImpl implements IAaUserDownService 
{
    @Autowired
    private AaUserDownMapper aaUserDownMapper;

    /**
     * 查询下载记录
     * 
     * @param id 下载记录主键
     * @return 下载记录
     */
    @Override
    public AaUserDown selectAaUserDownById(Long id)
    {
        return aaUserDownMapper.selectAaUserDownById(id);
    }

    /**
     * 查询下载记录列表
     * 
     * @param aaUserDown 下载记录
     * @return 下载记录
     */
    @Override
    public List<AaUserDown> selectAaUserDownList(AaUserDown aaUserDown)
    {
        return aaUserDownMapper.selectAaUserDownList(aaUserDown);
    }

    /**
     * 新增下载记录
     * 
     * @param aaUserDown 下载记录
     * @return 结果
     */
    @Override
    public int insertAaUserDown(AaUserDown aaUserDown)
    {
        return aaUserDownMapper.insertAaUserDown(aaUserDown);
    }

    /**
     * 修改下载记录
     * 
     * @param aaUserDown 下载记录
     * @return 结果
     */
    @Override
    public int updateAaUserDown(AaUserDown aaUserDown)
    {
        return aaUserDownMapper.updateAaUserDown(aaUserDown);
    }

    /**
     * 批量删除下载记录
     * 
     * @param ids 需要删除的下载记录主键
     * @return 结果
     */
    @Override
    public int deleteAaUserDownByIds(Long[] ids)
    {
        return aaUserDownMapper.deleteAaUserDownByIds(ids);
    }

    /**
     * 删除下载记录信息
     * 
     * @param id 下载记录主键
     * @return 结果
     */
    @Override
    public int deleteAaUserDownById(Long id)
    {
        return aaUserDownMapper.deleteAaUserDownById(id);
    }
}
